#include <iostream>

using namespace std;

double divint(int,int);
int main(void)
{
    int a1 = 5;
    int b1 = 0;
    double z = 0.0;
    try
    {
        z = divint(a1,b1);
        cout << z << endl;
    }catch(const char *msg)
    {
        cerr << msg << endl;
    }
    return 0;
}
double divint(int a,int b)
{
    if(b == 0)
    {
        throw "b is zero,it's a fault";
    }
    return (a/b);
}
